# -*- coding: UTF-8 -*-
#学习使用按位与 & (0&0=0; 0&1=0; 1&0=0; 1&1=1)

if __name__ == '__main__':
    a = 8
    b = a & 4
    print('a & b = %d' % b)
    b &= 2
    print('a & b = %d' % b)
